/**
 * 
 */
package command;

/**
 * PatternBox: "ConcreteCommand" implementation.
 * <ul>
 *   <li>defines a binding between a Receiver object and an action.</li>
 *   <li>implements Execute by invoking the corresponding operation(s) on Receiver.</li>
 * </ul>
 * 
 * @author <a href="mailto:dirk.ehms@patternbox.com">Dirk Ehms</a>
 * @author lx
 */
public class PlayCommand implements Command {

	/** stores the Receiver instance of the ConcreteCommand */
	private final TV fReceiver;

	/** 
	 * Constructor
	 */
	public PlayCommand(TV receiver) {
		super();
		fReceiver = receiver;
	}

	/** 
	 * This method executes the command by invoking the corresponding
	 * method of the Receiver instance.
	 */
	public void execute() {
		System.out.println("PlayCommand.execute()");
		fReceiver.action();
	}

}
